package System类编程题;

import java.util.ArrayList;
import java.util.List;

public class CountRuntime {
    public static void main(String[] args) {
        List<Integer> list= new ArrayList<>();
        long before = System.currentTimeMillis();
        for(int i=0;i<10000000;i++){
            list.add(i);
        }
        System.out.println("共耗时:"+(System.currentTimeMillis()-before)+"毫秒");
    }
}
